package xkp.lesson.producer.entity;

public class MQMessage<T> {
    //用户唯一识别token,用于标识是谁发送的数据
    private String token;
    //消息数据
    private T data;


    public MQMessage() {
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }


    @Override
    public String toString() {
        return "MQMessage{" +
                "token='" + token + '\'' +
                ", data=" + data +
                '}';
    }
}
